<?php /*a:2:{s:50:"F:\CaOadmin\application\admin\view\admin\info.html";i:1569741059;s:37:"../application/admin/view/layout.html";i:1569485205;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title><?php echo htmlentities($title); ?></title>

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico">
    <link href="<?php echo staticResource('css/bootstrap.min.css?v=3.3.6'); ?>" rel="stylesheet">
    <link href="<?php echo staticResource('css/font-awesome.min.css?v=4.4.0'); ?>" rel="stylesheet">
    


    <link href="<?php echo staticResource('css/animate.css'); ?>" rel="stylesheet">
    <link href="<?php echo staticResource('css/style.css?v=4.1.0'); ?>" rel="stylesheet">
    <link href="<?php echo staticResource('extend/common.css'); ?>" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg">

<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" id="myself">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">我的角色</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?php echo session('admin.role'); ?>" disabled="">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">我的登录名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?php echo session('admin.login_name'); ?>"
                                       disabled="">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">我的手机</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" value="<?php echo session('admin.mobile'); ?>" name="mobile">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label">我的头像</label>
                            <div class="col-sm-10 file-area">
                                <div class="file-pretty">
                                    <input type="file" class="form-control" style="display: none;" up-url="<?php echo url('admin/upload'); ?>">
                                    <div class="input-append input-group">
                                            <span class="input-group-btn">
                                                <button class="btn btn-white select" type="button">选择文件</button>
                                            </span>
                                        <input class="input-large form-control" type="text" name="hand_img"  value="<?php echo session('admin.image'); ?>" readonly>
                                        <img class="beforeView" src="" style="display: none;">
                                    </div>
                                </div>
                                <div class="back-change btn btn-primary">查看图片</div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="button" id="sub">保存</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>

</div>


<!-- 全局js -->
<script src="<?php echo staticResource('js/jquery.min.js?v=2.1.4'); ?>"></script>
<script src="<?php echo staticResource('js/bootstrap.min.js?v=3.3.6'); ?>"></script>
<script src="<?php echo staticResource('js/plugins/metisMenu/jquery.metisMenu.js'); ?>"></script>
<script src="<?php echo staticResource('js/plugins/slimscroll/jquery.slimscroll.min.js'); ?>"></script>
<script src="<?php echo staticResource('js/plugins/layer/layer.min.js'); ?>"></script>
<script src="<?php echo staticResource('extend/common.js'); ?>"></script>

<!-- 自定义js -->

<script>
    $(function () {
        // 提交表单
        $('#sub').click(function () {
            http_post(
                "<?php echo url('admin/admin/info'); ?>",
                $('#myself').serialize(),
                function (res) {
                    layer.msg('更新成功',{icon:1})
                }
            )
            return false;
        })
    })
</script>


</body>

</html>
